<?php

include 'init.php';

$admin = new Admin();
$admin->checkAdmin();

if (isset($_POST['name']) && isset($_POST['view_name']))
{
    $entity = new EntityAdmin();
    $entity->addEntity($_POST['name'], $_POST['view_name']);
}
?>
